package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.Work;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * ֵ����Ϣ�� Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2023-10-16
 */
public interface WorkMapper extends BaseMapper<Work> {

    List<Work> getTotal(@Param("workInfo") Work workInfo);

    List<Work> getAll(@Param("page") Long page, @Param("limit") Long limit,@Param("workInfo") Work work);

    void deleteByWorkNums(@Param("workNums") List<Long> workNums);

    void addWork(@Param("workInfo") Work workInfo);

    void modifyStatus(@Param("workNum") Long workNum,@Param("isFree") Long isFree);

    Work getAllByWorkNum(@Param("workNum") Long workNum);

    void modifyWork(@Param("workInfo") Work workInfo);

    void modifyWorkNum(@Param("workNum") Long workNum,@Param("num") Long num);
}
